from info import create_app
from flask_migrate import Migrate,MigrateCommand
from flask_script import Manager
from info import db,models

app = create_app('develop')
# 关联app和db
Migrate(app,db)

manager = Manager(app)

manager.add_command('db',MigrateCommand)

if __name__ == "__main__":
    # print(app.url_map)
    manager.run()